<template>
  <t-switch
    :loading="item.loading"
    class="common-switch"
    :size="item.size || 'large'"
    :label="item.switchLabel || ['ON', 'OFF']"
  />
</template>

<script setup lang="ts">
defineProps({
  item: {
    type: Object as any,
    default: () => {
      return [];
    },
  },
});
</script>

<style lang="less" scoped></style>
